package com.example.house.web.service.user;

import com.example.house.common.bean.Result;
import com.example.house.common.rest.RestCustom;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
public class SysUserService {

    @Value("${restful.server.rest.user}")
    String serverRestUser;

    @Autowired
    private RestCustom restCustom;

    public Result list(){
        Result result = restCustom.getForEntity(serverRestUser, "/restful/sys/user/info");
        return result;
    }
}
